package com.roc.dao;

import java.util.List;

import com.roc.bean.orgMainBean;
import com.roc.pojo.Operators;
import com.roc.pojo.OrgBean;
import com.roc.pojo.TblArea;
import com.roc.pojo.TblInsInf;
import com.roc.service.ServiceException;

public interface IorgDao extends IBaseDao{
	//查询所有机构
	List<TblInsInf> queryAllOrgList()throws DaoException;
		
	//查询所有机构
	List<TblInsInf> queryOrgList()throws DaoException;
	//查询机构根据编码
	OrgBean  queryOrgByCode(String  code)throws DaoException;
	//查询机构根据编码
	TblInsInf  queryInsByCode(String  code)throws DaoException;
	
	List lisOrgByMerchantId(long merchantId)throws DaoException;
	List<OrgBean> listOrgs(Operators operators)throws DaoException;
	
	List<TblInsInf> queryOrg(TblInsInf inf)throws DaoException;
	
	/**
	 * 根据机构号得到区域
	 * @param orgCode
	 * @return
	 * @throws ServiceException
	 */
	List<TblArea> listAreaByOrgCode(String orgCode) throws DaoException;
	
	TblInsInf queryOrgByOrgCode(String org_code) throws DaoException;
	
	List<orgMainBean> listOrgMainByOrgCode(String orgCode) throws DaoException ;
	
	orgMainBean queryOrgMainByOrgMain(String orgMain) throws DaoException ;
	
}
